package com.chat;


import com.chat.netty.server.WSServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @version V1.0
 * @Title:
 * @Package
 * @Description:
 * @author: 刘星星
 * @date: 2020/4/27 11:58
 */
@SpringBootApplication(
        scanBasePackages = {
                "com.chat.web",
                "com.chat.netty",
        }
)
public class Start implements CommandLineRunner {

    @Autowired
    private WSServer wsServer;

    public static void main(String[] args) {
        SpringApplication.run(Start.class);
    }

    @Override
    public void run(String... args) throws Exception {
        this.wsServer.run();
    }

}
